<?php

namespace app\common\validate;

use think\Validate;

class Maintenances extends Validate
{
    protected $rule =   [
        'openid'  => 'require',
        'machineid' => 'require|min:6',
    ];

    protected $message  =   [
        'openid.require' => 'wechat id必须',
        'machineid.require' => '设备编号必须',
        'machineid.min' => '设备编号至少6位',
    ];

}